package com.example.joke.test;

public class Parent {

    static int parentA;
    int parentB;

    static {
        System.out.println("静态代码块：parentA: " + parentA);
    }

    {
        System.out.println("非静态代码块parentA: " + parentA + "parentB: " + parentB);
    }

    public Parent(int parentB) {
        this.parentB = parentB;
        System.out.println("构造函数：parentA: " + parentA + "parentB: " + parentB);
    }
}
